package com.gitee.cui.springcloud.account.dao;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * TODO
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-26 15:48
 **/
@Mapper
public interface AccountDao {

	/**
	 * 扣减账户金额
	 * @param userId 用户id
	 * @param money 扣减金额
	 */
	void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
